
/*
 * @Author: your name
 * @Date: 2020-11-27 00:58:39
 * @LastEditTime: 2021-08-11 17:15:41
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \kinoBaxlan后台管理系统\src\router.js
 */
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

const routes = [{
    path: '/zhjk',
    redirect: '/zhjk/home'
  },
  {
    path: '/zhjk/home',
    component: () => import('@/views/Home'),
  },
    {
        path: '/zhjk/userInfo',
        component: () => import('@/views/userInfo'),
    },
]

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

export default new Router({
  mode: 'history',
  routes
})
